package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.Setmeal;
import com.sky.result.PageResult;
import com.sky.vo.DishItemVO;
import com.sky.vo.DishVO;

import java.io.IOException;
import java.util.List;

public interface DishService {
    void saveDishWithFlavor(DishDTO dishDTO);

    PageResult pageList(DishPageQueryDTO dishPageQueryDTO) throws IOException;

    void deleteBatch(List<Long> ids);

    DishVO getDishVOById(Long id);

    List<DishVO> getDishVOByName(String name);

    void updateDish(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    List<Dish> getByCategoryId(Long categoryId);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

}
